<?php

include_once "LinkTag.php";
require_once(sfConfig::get('sf_app_lib_dir').'/common/html/constants/AbstractConstantsScript.php');

/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of ScriptBean
 *
 * @author jhonny
 */
class ScriptTag extends LinkTag{

    private $language;
    private $src;

    public function __construct() {
        $this->setType(AbstractConstantsScript::$tagType);
        $this->setLanguage(AbstractConstantsScript::$tagLanguage);
    }
    public function getLanguage() {
        return $this->language;
    }

    public function setLanguage($language) {
        $this->language = $language;
    }

    public function getSrc() {
        return $this->src;
    }

    public function setSrc($src) {
        $this->src = $src;
    }


    /**
     *<script language="javascript" type="text/javascript" src="index.aspx_archivos/rc_all.js"></script>
     * @return devuelve el string de script
     */
    public function toString() {
        $value = '    ';
        $value .= '<script language="'.$this->getLanguage().'" type="'.$this->getType().'" src="'.$this->getSrc().'"></script>';
        return $value;
    }
}
?>
